import Router from 'koa-router'
const router = new Router()

import AdminController from '../../controllers/AdminController.js'
import Auth from '../../middlewares/adminLoginAuth.js'

router.post('/login', (new AdminController).login)
router.get('/admin/info', new Auth().m, (new AdminController).info)

export default router